<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex flex-wrap align-center justify-between benben-position-layout flex my_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center my_fd0_0'>
        </view>
        <view class='flex flex-wrap align-center justify-end my_fd0_1'>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout my_flex_1" @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/dlzc/login/login`">
        <view class='flex flex-wrap align-center' v-if=" isLogin===false" >
          <image class='my_fd1_0_c0' mode="aspectFit" :src='STATIC_URL+"100.png"'></image>
          <text class='my_fd1_0_c1'>请登录</text>
        </view>
        <view class='flex flex-wrap align-center' v-if=" isLogin===true">
          <image class='my_fd1_0_c0' mode="aspectFit" :src='dataMessage.head_img'></image>
          <text class='my_fd1_0_c1'>{{dataMessage.user_nickname}}</text>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout my_flex_2">
        <view class='flex flex-wrap align-center justify-between my_fd2_0'
          v-if=" dataMessage.userlevel_id!=0">
          <view class='flex flex-direction flex-wrap align-stretch'>
            <view class='flex flex-wrap align-center my_fd2_0_c0_c0'>
              <image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"57.png"'></image>
              <text class='my_fd2_0_c0_c0_c1'>我的会员</text>
            </view>
            <view class='flex flex-wrap align-center'>
              <text class='my_fd2_0_c0_c1_c0'>{{dataMessage.vip_last_time}}</text>
              <text class='my_fd2_0_c0_c1_c1'>到期</text>
            </view>
          </view>
          <view class='flex flex-wrap align-center justify-center my_fd2_0_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
            :data-url="`/pages/my/activateMembership/activateMembership`">
            <text class='my_fd2_0_c1_c0'>立即续费</text>
          </view>
        </view>
        <view class='flex flex-direction flex-wrap align-stretch my_fd2_1'>
          <view class='flex flex-wrap align-center my_fd2_1_c0'>
            <view class='flex flex-direction flex-wrap align-center my_fd2_1_c0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/my/pickUp/pickUp?is_pickup=1`">
              <image class='my_fd2_1_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"49.png"'></image>
              <text class='my_fd2_1_c0_c0_c1'>待取货</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center my_fd2_1_c0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/my/pickUp/pickUp?is_pickup=2`">
              <image class='my_fd2_1_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"50.png"'></image>
              <text class='my_fd2_1_c0_c0_c1'>已取货</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center my_fd2_1_c0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/my/pickUp/pickUp?is_pickup=3`">
              <image class='my_fd2_1_c0_c2_c0' mode="aspectFit" :src='STATIC_URL+"51.png"'></image>
              <text class='my_fd2_1_c0_c2_c1'>待归还</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center my_fd2_1_c0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/my/pickUp/pickUp?is_pickup=4`">
              <image class='my_fd2_1_c0_c2_c0' mode="aspectFit" :src='STATIC_URL+"52.png"'></image>
              <text class='my_fd2_1_c0_c2_c1'>已完成</text>
            </view>
          </view>
        </view>
        <view class='flex flex-direction flex-wrap align-stretch my_fd2_2'>
          <view class='flex flex-wrap align-center justify-between'>
            <view class='flex flex-direction flex-wrap align-center my_fd2_2_c0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/my/myMoney/myMoney`">
              <image class='my_fd2_2_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"53.png"'></image>
              <text class='my_fd2_2_c0_c0_c1'>我的积分</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center my_fd2_2_c0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/my/myDeposit/myDeposit`">
              <image class='my_fd2_2_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"54.png"'></image>
              <text class='my_fd2_2_c0_c0_c1'>我的押金</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center my_fd2_2_c0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/my/harvestAddress/harvestAddress`">
              <image class='my_fd2_2_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"55.png"'></image>
              <text class='my_fd2_2_c0_c0_c1'>我的地址</text>
            </view>
          </view>
          <view class='flex flex-wrap align-center justify-between my_fd2_2_c1'>
            <view class='flex flex-direction flex-wrap align-center my_fd2_2_c0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/my/help/help`">
              <image class='my_fd2_2_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"58.png"'></image>
              <text class='my_fd2_2_c0_c0_c1'>帮助中心</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center my_fd2_2_c0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/xtsz/feedBack/feedBack`">
              <image class='my_fd2_2_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"59.png"'></image>
              <text class='my_fd2_2_c0_c0_c1'>意见反馈</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center my_fd2_2_c0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/my/aboutUs/aboutUs`">
              <image class='my_fd2_2_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"60.png"'></image>
              <text class='my_fd2_2_c0_c0_c1'>关于我们</text>
            </view>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "dataMessage": {
          "follow_count": "",
          "invite_code": "",
          "address": "",
          "address_code": "",
          "address_citycode": "",
          "id": "",
          "lastid": "",
          "user_nickname": "",
          "mobile": "",
          "user_name": "",
          "head_img": "",
          "birthday": "",
          "is_finger": "",
          "user_money": "",
          "freeze_money": "",
          "withdrawal_money": "",
          "score": "",
          "empirical": "",
          "invoice_title": "",
          "invoice_company_title": "",
          "total_consumption_money": "",
          "sex": "",
          "create_time": "",
          "phone": "",
          "online": "",
          "_mobile": "",
          "coupon": "",
          "age": "",
          "collection_count": "",
          "browse_count": "",
          "certified": "",
          "invite": [],
          "is_member": "",
          "expirationTime": "",
          "userlevel_id": "",
          "vip_last_time": ""
        }
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },
      userInfo: {
        get() {
          return this.$store.state.userInfo
        },
        set() {
          this.$store.commit('updateUserInfo', value)
        },
      },
      isLogin() {
        return this.$store.state.token == '' ? false : true;
      }
    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      this.queryMessageFunc()
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //个人中心-获取会员详细信息
      async queryMessageFunc() {
        if (this.isLogin === true) {
          //请求方法
          //数据验证

          let datadataMessage = await this.$api.post(global.apiUrls.post5c78c4772da97, {
            user_id: this.userInfo.id
          });

          if (datadataMessage.data.code != 1) {
            this.$message.info(datadataMessage.data.msg);
            return
          }
          let infodataMessage = datadataMessage.data;
          this.dataMessage = infodataMessage.data
        }
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: url(https://api.nongjugongxiang.com/nongju/images/48.png) no-repeat;
    background-size: 100% auto;
  }

  .my_flex_0 {
    background: url(https://api.nongjugongxiang.com/nongju/images/48.png) no-repeat;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .my_fd0_1 {
    width: 200rpx;
    height: 88rpx;
    position: relative;
  }

  .my_fd0_0 {
    width: 200rpx;
    height: 88rpx;
  }

  .my_flex_1 {
    padding: 60rpx 48rpx 0rpx 56rpx;
  }

  .my_fd1_0_c1 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
  }

  .my_fd1_0_c0 {
    width: 108rpx;
    height: 108rpx;
    border-radius: 67rpx 67rpx 67rpx 67rpx;
    margin: 0rpx 16rpx 0rpx 0rpx;
  }

  .my_flex_2 {
    padding: 56rpx 32rpx 0rpx 32rpx;
  }

  .my_fd2_2_c1 {
    margin: 32rpx 0rpx 0rpx 0rpx;
  }

  .my_fd2_2_c0_c0_c1 {
    color: var(--benbenFontColor0);
    font-size: 24rpx;
    font-weight: 400;
    line-height: 33rpx;
    margin: 10rpx 0rpx 0rpx 0rpx;
  }

  .my_fd2_2_c0_c0_c0 {
    width: 54rpx;
    height: 54rpx;
  }

  .my_fd2_2_c0_c0 {
    position: relative;
  }

  .my_fd2_2 {
    background: #FFFFFF;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    padding: 32rpx 40rpx 32rpx 40rpx;
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .my_fd2_1_c0_c2_c1 {
    color: #333333;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 33rpx;
    margin: 10rpx 0rpx 0rpx 0rpx;
  }

  .my_fd2_1_c0_c2_c0 {
    width: 64rpx;
    height: 64rpx;
  }

  .my_fd2_1_c0_c0_c1 {
    color: #333333;
    font-size: 24rpx;
    font-weight: 400;
    margin: 10rpx 0rpx 0rpx 0rpx;
  }

  .my_fd2_1_c0_c0_c0 {
    width: 64rpx;
    height: 64rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .my_fd2_1_c0_c0 {
    width: 25%;
  }

  .my_fd2_1_c0 {
    height: 114rpx;
  }

  .my_fd2_1 {
    background: #FFFFFF;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    margin: 24rpx 0rpx 0rpx 0rpx;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .my_fd2_0_c1_c0 {
    color: #EA4459;
    font-size: 28rpx;
    font-weight: 500;
  }

  .my_fd2_0_c1 {
    background: #FFFFFF;
    border-radius: 32rpx 32rpx 32rpx 32rpx;
    width: 152rpx;
    height: 64rpx;
  }

  .my_fd2_0_c0_c1_c1 {
    color: #FFFFFF;
    font-size: 24rpx;
    font-weight: 400;
  }

  .my_fd2_0_c0_c1_c0 {
    color: #FFFFFF;
    font-size: 24rpx;
    font-weight: 400;
    margin: 0rpx 8rpx 0rpx 0rpx;
  }

  .my_fd2_0_c0_c0_c1 {
    color: #FFFFFF;
    font-size: 32rpx;
    font-weight: 500;
  }

  .my_fd2_0_c0_c0_c0 {
    width: 40rpx;
    height: 38rpx;
    margin: 0rpx 16rpx 0rpx 0rpx;
  }

  .my_fd2_0_c0_c0 {
    margin: 0rpx 0rpx 8rpx 0rpx;
  }

  .my_fd2_0 {
    background: url(https://api.nongjugongxiang.com/nongju/images/56.png) no-repeat;
    width: 686rpx;
    height: 126rpx;
    background-size: 100% auto;
    padding: 0rpx 32rpx 0rpx 32rpx;
  }
</style>
